package com.santi.service.impl;

import com.santi.entity.ResultMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.santi.entity.User;
import com.santi.mapper.UserMapper;
import com.santi.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserMapper userMapper;
	
	@Override
	public User login(String username, String password) {

		return userMapper.login(username , password);
	}

	@Override
	public int register(User user) {


		return userMapper.register(user);
	}

	/**
	 * 注册
	 * @param user 参数封装
	 * @return Result
	 */



}





